[cmd] Apache Config SSL.txt

Разделы
    # run this
a2enmod ssl

<VirtualHost *:80>
Define vHOST server.ru
ServerName ${vHOST}
ServerAlias www.${vHOST}
DocumentRoot /var/www/${vHOST}/project/public
ErrorLog /var/www/${vHOST}/logs/error.log
CustomLog /var/www/${vHOST}/logs/access.log combined
</VirtualHost>

<VirtualHost *:443>
ServerName ${vHOST}
ServerAlias www.${vHOST}
DocumentRoot /var/www/${vHOST}/project/public

SSLEngine on

SSLCertificateFile /etc/letsencrypt/live/${vHOST}/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/${vHOST}/privkey.pem
SSLCertificateChainFile /etc/letsencrypt/live/${vHOST}/fullchain.pem
SSLCACertificateFile /etc/letsencrypt/live/${vHOST}/chain.pem
</VirtualHost>
изменён: 06 января 2024 г.